package middle.arrays;

import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

/**
 * @Author Elephas
 * @Date 2022/2/16
 **/
/*
public class Main {
    public static void main(String[] args){

        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        System.out.println(n);
        int[][] projects = new int[n][3];
        for(int i = 0; i < n ; i++){
            projects[i][0] = input.nextInt();
            projects[i][1] = input.nextInt();
            projects[i][2] = input.nextInt();
        }
        Arrays.sort(projects, new Comparator<int[]>() {
                    @Override
                    public int compare(int[] o1, int[] o2) {
                        return o1[2] - o2[2];
                    }
                });
        int curDate = 0;

        for(int[] project : projects){
            int curProfit =

        }

        }
}


 */